package jsj.mythread;

public class FoodDemo {

	public static void main(String[] args) {
		Food f = new Food();
		SetFood sf = new SetFood(f);
		GetFood gf = new GetFood(f);
		
		Thread setThread = new Thread(sf);
		Thread getThread = new Thread(gf);
		
		setThread.start();
		getThread.start();

	}

}
